package com.zjuee.web.ledger.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.zjuee.base.dto.common.plan.PlanInfoDto;
import com.zjuee.vo.PlanInfoVo;
import com.zjuee.vo.PlanLoginVo;
import com.zjuee.base.model.common.plan.PlanCarry;
import com.zjuee.base.model.common.plan.PlanInfo;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author wu liang
 * @since 1.0
 */
@Mapper
public interface PlanMapper extends BaseMapper<PlanInfo> {

    PlanLoginVo selectBriefInfo(@Param("bciId") Long bciId, @Param("wpiYear") String wpiYear);

    PlanInfo selectinfoBybciid(@Param("bciId") Long bciId, @Param("wpiYear") String wpiYear);

    String findMaxWpiCode(@Param("wpiCode") String wpiCode, @Param("wpiYear") String wpiYear);


    Page<PlanInfo> findPlanlist(Page<PlanInfo> page, @Param("bciId") Long bciId);


     Page<PlanInfoVo> listPagePlanInfo(Page<PlanInfo> page, @Param("params") PlanInfoDto planInfoDto);

    List<PlanCarry> findPlanCarrylistByBciId(@Param("bciId") Long bciId, @Param("year") Integer year);
}
